package cn.bdqn.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.bdqn.dao.AddressMapper;
import cn.bdqn.entity.Address;
@Service("addressService")
public class AddressServiceImpl implements AddressService {
	@Autowired
	private AddressMapper addressMapper;
	@Override
	public Address queryAddressById(Integer addressid) {
		return addressMapper.queryAddressById(addressid);
	}
	@Override
	public List<Address> queryAllAddress(Integer pid) {
		return addressMapper.queryAllAddress(pid);
	}
	@Override
	public List<Address> queryAll() {
		return addressMapper.queryAll();
	}

}
